#! /usr/bin/env python
# -*- coding: utf-8 -*-

# 字符串操作

def eg1():
    """ 字符串大小写"""
    name = "ada love cace"
    print(name.title())

    print(name.upper())
    print(name.lower())


def eg2():
    """字符串拼接"""
    firstName = "tu"
    lastName = "liang"
    name = firstName.title() + lastName

    print("name=" + name)

def eg3():
    """数字"""
    age = 25
    # 使用str()函数包裹数字变量
    print("my age is " + str(age))


eg1()
eg2()
eg3()



